import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'contextPipe'
})
export class ContextPipe implements PipeTransform {
  constructor() {
  }

  transform(value: any, context: any): any {
    return {'data': value, 'context': context};
  }

}
